package com.kj.tms.common.bean.dto;



import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * Description: 分页技术的实现。
 * </p>
 */
// oracle,sqlserver,mysql分页技术
public class Pager implements Serializable {


    private static final long serialVersionUID = 1L;
    private int pageNo = 1; // 当前页
    private int rowCount = 0; // 总行数
    private int pageSize = 10; // 页大小
    private List results = new ArrayList();

    public Pager(int pageNo, int rowCount, int pageSize, List results) {
        super();
        this.pageNo = pageNo;
        this.rowCount = rowCount;
        this.pageSize = pageSize;
        this.results = results;
    }

    public Pager(){

    }
    public List getResults() {
        return results;
    }

    public void setResults(List results) {
        this.results = results;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setRowCount(int rowCount) {
        this.rowCount = rowCount;
    }

    public int getRowCount() {
        return rowCount;
    }

    @Override
    public String toString() {
        return "Pager{" +
                "pageNo=" + pageNo +
                ", rowCount=" + rowCount +
                ", pageSize=" + pageSize +
                ", results=" + results +
                '}';
    }
}